package com.demo11;

/**
 * Created by Administrator on 2017/4/15.
 */
public class Wordbook {
    public static void main(String[] args) {
        String str = new String("b");
        String str2 = new String("a");
        String str3 = new String("c");
        System.out.println(str + " compareTo " + str2 + ":" + str.compareTo(str2));
        System.out.println(str + " compareTo " + str3 + ":" + str.compareTo(str3));
        System.out.println("---end---");
        String str4 = new String("abc DEF");
        String newstr = str4.toLowerCase();
        String newstr2 = str4.toUpperCase();
        System.out.println(newstr);
        System.out.println(newstr2);
    }
}
